import * as api from '../../api/homepage';
import { Dispatch, AnyAction } from 'redux';
import * as actionType from '../../types/action';

export function getNewMultiAction () {
  return function (dispatch: Dispatch<actionType.HomepageNewMulti>) {
    return api.getNewMulti()
      .then(res => {
        dispatch({
          type: 'UPDATE_NEW_MULTI_LIST',
          value: res,
        });
      })
  }
}